package com.ruoyi.wxapp.config;

import lombok.Getter;

/**
 * 数据状态枚举-用于逻辑删除控制
 * @author 小懒虫
 * @date 2018/8/14
 */
@Getter
public enum TypeEnum {

	
    //广告时长   1=7天/2=半个月/3=1个月/4=1季度/5=半年/6=1年

    FANGZU(1, "房租"),
    WUYE(2, "物业");
	private Integer code;
    private String message;

    TypeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
    
    public static String getVal(Integer value) {
    	TypeEnum[] enums = values();
        for (TypeEnum businessModeEnum : enums) {
            if (businessModeEnum.getCode()==value) {
                return businessModeEnum.getMessage();
            }
        }
        return null;
    }
}

